<?php
/**
 * lsys orm
 * @author     Lonely <shan.liu@msn.com>
 * @copyright  (c) 2017 Lonely <shan.liu@msn.com>
 * @license    http://www.apache.org/licenses/LICENSE-2.0
 */
namespace LSYS\ORMCache\Lists;

use LSYS\ORM\Result;

interface CacheSet {
	/**
	 * set result to cache
	 * @param array $where
	 * @param string $sort
	 * @param int $offset
	 * @param int $limit
	 * @param Result $result
	 */
	public function lists_set(array $where,$sort,$offset,$limit,Result $result);
	/**
	 * set total to cache
	 * @param array $where
	 * @param int $total
	 */
	public function lists_total_set(array $where,$total);
}